#include "contestant.h"

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
    无参构造
Arguments:
    null
Return:
    null
----------------------------------------------------------*/
Contestant::Contestant()
{
    /* do nothing */
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
    有参构造
Arguments:
    name - 名字赋值
Return:
    null
----------------------------------------------------------*/
Contestant::Contestant(char *name):mName(name)
{
    /* do nothing */
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
    拷贝构造
Arguments:
    ob - 对象的引用
Return:
    null
----------------------------------------------------------*/
Contestant::Contestant(const Contestant &ob)
{
    this->mName = ob.mName;
    this->mScore = ob.mScore;
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
    析构函数
Arguments:
    null
Return:
    null
----------------------------------------------------------*/
Contestant::~Contestant()
{
    /* do nothing */
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
    插入成绩
Arguments:  
    s - 成绩
Return:
    null
----------------------------------------------------------*/
void Contestant::pushScore(int s)
{
    this->mScore.push_back(s);
    return;
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
    获取名字
Arguments:  
    void
Return:
    返回名字类型
----------------------------------------------------------*/
string Contestant::getName(void)
{
    return this->mName;
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
    获取成绩
Arguments:  
    void
Return:
    返回deque容器
----------------------------------------------------------*/
deque<int> Contestant::getScore(void)
{
    return this->mScore;
}